vendor/scs/test/run_tests.c in scs-0.3.1 vs vendor/scs/test/run_tests.c in scs-0.3.2

- old
+ new

@@ -9,37 +9,46 @@ #include "problems/degenerate.h" #include "problems/hs21_tiny_qp.h" #include "problems/hs21_tiny_qp_rw.h" #include "problems/infeasible_tiny_qp.h" #include "problems/qafiro_tiny_qp.h" -#include "problems/random_prob.h" -#include "problems/rob_gauss_cov_est.h" #include "problems/small_lp.h" -#include "problems/test_fails.h" +#include "problems/small_qp.h" +#include "problems/test_validation.h" #include "problems/unbounded_tiny_qp.h" +#define _SKIP(problem) \ + char *problem(void) { \ + scs_printf("skipped\n"); \ + return 0; \ + } + +#ifdef USE_LAPACK /* solve SDPs, requires blas / lapack */ +#include "problems/rob_gauss_cov_est.h" +#else +_SKIP(rob_gauss_cov_est) +#endif + +/* TODO: this reads a file written with 32bit ints */ +#if defined(USE_LAPACK) && !defined(DLONG) +#include "problems/random_prob.h" +#else +_SKIP(random_prob) +#endif + int tests_run = 0; static const char *all_tests(void) { - scs_printf("test_fails\n"); - mu_run_test(test_fails); - scs_printf("degenerate\n"); + mu_run_test(test_validation); mu_run_test(degenerate); - scs_printf("small_lp\n"); mu_run_test(small_lp); - scs_printf("rob_gauss_cov_est\n"); + mu_run_test(small_qp); mu_run_test(rob_gauss_cov_est); - scs_printf("hs21_tiny_qp\n"); mu_run_test(hs21_tiny_qp); - scs_printf("hs21_tiny_qp_rw\n"); mu_run_test(hs21_tiny_qp_rw); - scs_printf("qafiro_tiny_qp\n"); mu_run_test(qafiro_tiny_qp); - scs_printf("infeasible_tiny_qp\n"); mu_run_test(infeasible_tiny_qp); - scs_printf("unbounded_tiny_qp\n"); mu_run_test(unbounded_tiny_qp); - scs_printf("random_prob\n"); mu_run_test(random_prob); return 0; } int main(void) {