From e07e02323ee0b993fae796e2c767694a0d440972 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 29 Apr 2018 16:51:53 +1000 Subject: [PATCH] Update build scripts for tests. --- tests/mal_build_tests_bsd | 8 ++++++++ ...ild_emscripten.bat => mal_build_tests_emscripten.bat} | 0 tests/mal_build_tests_linux | 9 +++++++++ .../{mal_test_0_build.bat => mal_build_tests_win32.bat} | 0 tests/mal_test_0_build | 3 --- tests/mal_test_0_build_bsd | 2 -- 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100755 tests/mal_build_tests_bsd rename tests/{mal_test_0_build_emscripten.bat => mal_build_tests_emscripten.bat} (100%) create mode 100644 tests/mal_build_tests_linux rename tests/{mal_test_0_build.bat => mal_build_tests_win32.bat} (100%) delete mode 100644 tests/mal_test_0_build delete mode 100755 tests/mal_test_0_build_bsd diff --git a/tests/mal_build_tests_bsd b/tests/mal_build_tests_bsd new file mode 100755 index 00000000..12d970f2 --- /dev/null +++ b/tests/mal_build_tests_bsd @@ -0,0 +1,8 @@ +cc mal_test_0.c -o ./bin/mal_test_0 -Wall -lpthread -lm +c++ mal_test_0.c -o ./bin/mal_test_0_cpp -Wall -lpthread -lm + +cc mal_profiling.c -o ./bin/mal_profiling -Wall -lpthread -lm +c++ mal_profiling.c -o ./bin/mal_profiling_cpp -Wall -lpthread -lm + +cc mal_dithering.c -o ./bin/mal_dithering -Wall -lpthread -lm +c++ mal_dithering.c -o ./bin/mal_dithering_cpp -Wall -lpthread -lm diff --git a/tests/mal_test_0_build_emscripten.bat b/tests/mal_build_tests_emscripten.bat similarity index 100% rename from tests/mal_test_0_build_emscripten.bat rename to tests/mal_build_tests_emscripten.bat diff --git a/tests/mal_build_tests_linux b/tests/mal_build_tests_linux new file mode 100644 index 00000000..96074b57 --- /dev/null +++ b/tests/mal_build_tests_linux @@ -0,0 +1,9 @@ +#!/bin/bash +cc mal_test_0.c -o ./bin/mal_test_0 -Wall -ldl -lpthread -lm +c++ mal_test_0.c -o ./bin/mal_test_0_cpp -Wall -ldl -lpthread -lm + +cc mal_profiling.c -o ./bin/mal_profiling -Wall -ldl -lpthread -lm +c++ mal_profiling.c -o ./bin/mal_profiling_cpp -Wall -ldl -lpthread -lm + +cc mal_dithering.c -o ./bin/mal_dithering -Wall -ldl -lpthread -lm +c++ mal_dithering.c -o ./bin/mal_dithering_cpp -Wall -ldl -lpthread -lm \ No newline at end of file diff --git a/tests/mal_test_0_build.bat b/tests/mal_build_tests_win32.bat similarity index 100% rename from tests/mal_test_0_build.bat rename to tests/mal_build_tests_win32.bat diff --git a/tests/mal_test_0_build b/tests/mal_test_0_build deleted file mode 100644 index 3e166f28..00000000 --- a/tests/mal_test_0_build +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -cc mal_test_0.c -o ./bin/mal_test_0 -Wall -ldl -lpthread -lm -c++ mal_test_0.cpp -o ./bin/mal_test_0_cpp -Wall -ldl -lpthread -lm \ No newline at end of file diff --git a/tests/mal_test_0_build_bsd b/tests/mal_test_0_build_bsd deleted file mode 100755 index c3f52819..00000000 --- a/tests/mal_test_0_build_bsd +++ /dev/null @@ -1,2 +0,0 @@ -cc mal_test_0.c -o ./bin/mal_test_0 -Wall -lpthread -lm -c++ mal_test_0.cpp -o ./bin/mal_test_0_cpp -Wall -lpthread -lm