test: Update 2 files
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Failing after 20s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Failing after 20s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
This commit is contained in:
@ -11,7 +11,20 @@ rm -rf dehydrate_test_data
|
||||
|
||||
# Build the test program - mount the entire project directory to access ../output/dehydrate
|
||||
docker run --rm -v "$PROJECT_DIR":/workdir -w /workdir/test gitea.jde.nz/public/dropshell-build-base:latest \
|
||||
g++ -std=c++23 -static dehydrate_test.cpp -o dehydrate_test
|
||||
bash -c "
|
||||
if [ -f dehydrate_test.cpp ]; then
|
||||
g++ -std=c++23 -static dehydrate_test.cpp -o dehydrate_test
|
||||
else
|
||||
echo 'ERROR: dehydrate_test.cpp not found in current directory'
|
||||
exit 1
|
||||
fi
|
||||
"
|
||||
|
||||
# Check if compilation succeeded
|
||||
if [ ! -f "./dehydrate_test" ]; then
|
||||
echo "Error: Failed to compile dehydrate_test"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run the test
|
||||
./dehydrate_test
|
Reference in New Issue
Block a user