Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions tests/insertq_stress_test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.24)

set(PKG_TITLE "Insertq stress test")
set(PKG_VERSION "1.0")
set(PKG_TITLE_ID "IQST00001") # Should be unique across all tests in project
set(PKG_CONTENT_ID "IV0000-${PKG_TITLE_ID}_00-PS4SUBSYS0000000")
set(PKG_DOWNLOADSIZE 0)
set(PKG_SYSVER 16777297)
set(PKG_ATTRIBS1 0) # Known sfo attributes are stored in template/code/sfoparams.h
set(PKG_ATTRIBS2 0)

OpenOrbisPackage_PreProject()

project(${PKG_TITLE_ID} VERSION 0.0.1) # DO NOT change the project name!

add_subdirectory(code)

add_executable(${PKG_TITLE_ID}
$<TARGET_OBJECTS:${PKG_TITLE_ID}_obj>
${OO_PS4_TOOLCHAIN}/lib/crt1.o
)

target_link_libraries(${PKG_TITLE_ID} PRIVATE SceSystemService)
add_dependencies(${PKG_TITLE_ID} CppUTest)

OpenOrbisPackage_PostProject()
674 changes: 674 additions & 0 deletions tests/insertq_stress_test/LICENSE

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions tests/insertq_stress_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# OpenOrbis CMake project

This is a template for quick start with PS4 development using OpenOrbis toolchain.

## Usage

```bash
cmake -B./build/ -S./ -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_TOOLCHAIN_FILE=OpenOrbis-tc.cmake
cmake --build ./build/ -j8
cmake --install .
```
Empty file.
7 changes: 7 additions & 0 deletions tests/insertq_stress_test/code/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
project(${PKG_TITLE_ID}_obj LANGUAGES CXX C)

add_library(${PKG_TITLE_ID}_obj OBJECT
main.cpp
test.cpp
test.c
)
13 changes: 13 additions & 0 deletions tests/insertq_stress_test/code/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "CppUTest/CommandLineTestRunner.h"

#include <cstdint>
#include <orbis/SystemService.h>
#include <sstream>

int main(int ac, char** av) {
// No buffering
setvbuf(stdout, NULL, _IONBF, 0);
int result = RUN_ALL_TESTS(ac, av);
sceSystemServiceLoadExec("EXIT", nullptr);
return result;
}
Loading