Remove plenty of makefile misconfigurations

This commit is contained in:
Justine Tunney 2022-07-21 09:16:38 -07:00
parent 9172fd42a0
commit 8b469389f6
186 changed files with 1408 additions and 901 deletions

View file

@ -90,6 +90,7 @@ int mbedtls_test_platform_setup(void) {
int ret = 0;
static char mybuf[2][BUFSIZ];
ShowCrashReports();
makedirs("o/tmp", 0755);
setvbuf(stdout, mybuf[0], _IOLBF, BUFSIZ);
setvbuf(stderr, mybuf[1], _IOLBF, BUFSIZ);
#if defined(MBEDTLS_PLATFORM_C)

View file

@ -15,6 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "libc/intrin/kprintf.h"
#include "third_party/mbedtls/test/test.inc"
/*
* *** THIS FILE WAS MACHINE GENERATED ***

View file

@ -1088,10 +1088,10 @@ depends_on:0
5:int:256
CTR_DRBG write/update seed file [#1]
7:char*:"/tmp/test_suite_ctr_drbg_seed":int:0
7:char*:"o/tmp/test_suite_ctr_drbg_seed":int:0
CTR_DRBG write/update seed file [#2]
7:char*:"/tmp/test_suite_ctr_dbg_no_such_dir/file":exp:1
7:char*:"o/tmp/test_suite_ctr_dbg_no_such_dir/file":exp:1
CTR_DRBG Special Behaviours
0

View file

@ -8,10 +8,10 @@ Create NV seed_file
8
Entropy write/update seed file: good
1:char*:"/tmp/mbedtls_test_suite_entropy_seed":int:0
1:char*:"o/tmp/mbedtls_test_suite_entropy_seed":int:0
Entropy write/update seed file: nonexistent
1:char*:"/tmp/no_such_dir/file":exp:0
1:char*:"o/tmp/no_such_dir/file":exp:0
Entropy no sources
2

View file

@ -20,7 +20,7 @@ depends_on:2
HMAC_DRBG write/update seed file SHA-1 [#1]
depends_on:0
1:exp:0:char*:"/tmp/test_suite_hmac_drbg_seed":int:0
1:exp:0:char*:"o/tmp/test_suite_hmac_drbg_seed":int:0
HMAC_DRBG write/update seed file SHA-1 [#2]
depends_on:0
@ -28,7 +28,7 @@ depends_on:0
HMAC_DRBG write/update seed file SHA-224 [#1]
depends_on:1
1:exp:1:char*:"/tmp/test_suite_hmac_drbg_seed":int:0
1:exp:1:char*:"o/tmp/test_suite_hmac_drbg_seed":int:0
HMAC_DRBG write/update seed file SHA-224 [#2]
depends_on:1
@ -36,7 +36,7 @@ depends_on:1
HMAC_DRBG write/update seed file SHA-256 [#1]
depends_on:1
1:exp:2:char*:"/tmp/test_suite_hmac_drbg_seed":int:0
1:exp:2:char*:"o/tmp/test_suite_hmac_drbg_seed":int:0
HMAC_DRBG write/update seed file SHA-256 [#2]
depends_on:1
@ -44,7 +44,7 @@ depends_on:1
HMAC_DRBG write/update seed file SHA-384 [#1]
depends_on:2:3
1:exp:3:char*:"/tmp/test_suite_hmac_drbg_seed":int:0
1:exp:3:char*:"o/tmp/test_suite_hmac_drbg_seed":int:0
HMAC_DRBG write/update seed file SHA-384 [#2]
depends_on:2:3
@ -52,11 +52,11 @@ depends_on:2:3
HMAC_DRBG write/update seed file SHA-512 [#1]
depends_on:2
1:exp:4:char*:"/tmp/test_suite_hmac_drbg_seed":int:0
1:exp:4:char*:"o/tmp/test_suite_hmac_drbg_seed":int:0
HMAC_DRBG write/update seed file SHA-512 [#2]
depends_on:2
1:exp:4:char*:"/tmp/test_suite_hmac_drbg_no_such_dir/file":exp:5
1:exp:4:char*:"o/tmp/test_suite_hmac_drbg_no_such_dir/file":exp:5
HMAC_DRBG from buffer SHA-1
depends_on:0

View file

@ -95,7 +95,7 @@ Test mbedtls_mpi_read_file #3 (Input too big)
8:int:10:char*:"/zip/third_party/mbedtls/test/data/mpi_too_big":hex:"":exp:2
Base test mbedtls_mpi_write_file #1
9:int:10:char*:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":int:16:char*:"/tmp/test_suite_mpi_write"
9:int:10:char*:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":int:16:char*:"o/tmp/test_suite_mpi_write"
Base test mbedtls_mpi_lsb #1
12:int:10:char*:"56125680981752282334141896320372489490613963693556392520816017892111350604111697682705498319512049040516698827829292076808006940873974979584527073481012636016353913462376755556720019831187364993587901952757307830896531678727717924":int:2