NTESTS: reduce from 96 to 16

Takes 2,5 minutes anyway.
This commit is contained in:
Motiejus Jakštys 2022-10-19 16:11:01 +03:00
parent 64a3ef606e
commit fb7f72d56c
2 changed files with 2 additions and 13 deletions

4
BUILD
View File

@ -1,9 +1,9 @@
NTESTS=96 NTESTS=16
[ [
cc_binary( cc_binary(
name = "zigzag-{}".format(i), name = "zigzag-{}".format(i),
srcs = ["main.c"], srcs = ["main.cc"],
copts = ["-DZIGZAG={}".format(i)], copts = ["-DZIGZAG={}".format(i)],
) for i in range(NTESTS) ) for i in range(NTESTS)
] ]

11
main.c
View File

@ -1,11 +0,0 @@
#include <stdio.h>
#include <features.h>
int main() {
#ifdef __GLIBC__
printf("glibc_%d.%d\n", __GLIBC__, __GLIBC_MINOR__);
#else
printf("non-glibc\n");
#endif
return 0;
}