Compare commits
15 Commits
66d89c0be3
...
feature1
| Author | SHA1 | Date | |
|---|---|---|---|
| 57482921b7 | |||
| c68f37f00f | |||
| fd0116c1f3 | |||
| a64d3645ba | |||
| 99d7acc8ef | |||
| 18592f3266 | |||
| e68913b1f6 | |||
| 61793f5ffb | |||
| a3f1cafc4e | |||
| a869d718ef | |||
| 00701b9293 | |||
| ea4bdaa3b7 | |||
| 0363743e10 | |||
| 039896ae2b | |||
| 6f995b74a4 |
@@ -1,4 +1,4 @@
|
||||
on: [push]
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build-images:
|
||||
@@ -9,17 +9,14 @@ jobs:
|
||||
|
||||
- name: Build GCC container
|
||||
working-directory: test5
|
||||
run: docker build . -f Dockerfile -t local/alpine-gcc:latest
|
||||
run: docker build . -f Dockerfile -t local/alpine-gcc-${{gitea.ref_name}}:latest
|
||||
|
||||
run-tests:
|
||||
runs-on: host-arch-x86_64
|
||||
needs: build-images
|
||||
#container: local/alpine-gcc:latest
|
||||
steps:
|
||||
- name: Clone repository
|
||||
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
||||
|
||||
- run: ls -lh test5
|
||||
|
||||
- name: Run tests
|
||||
run: docker run -it --rm -v ./test5:/app local/alpine-gcc:latest
|
||||
run: docker run -it --rm -v ./test5:/app local/alpine-gcc-${{gitea.ref_name}}:latest
|
||||
|
||||
@@ -6,7 +6,7 @@ size_t free_counter;
|
||||
|
||||
void * TEST_MALLOC(size_t size)
|
||||
{
|
||||
printf("malloc'ed %lu\n", size);
|
||||
//printf("malloc'ed %lu\n", size);
|
||||
|
||||
malloc_counter += size;
|
||||
return malloc(size);
|
||||
@@ -15,7 +15,7 @@ void * TEST_MALLOC(size_t size)
|
||||
void TEST_FREE(void *p)
|
||||
{
|
||||
size_t s = malloc_usable_size(p);
|
||||
printf("freed %lu\n", s);
|
||||
//printf("freed %lu\n", s);
|
||||
|
||||
free_counter += s;
|
||||
|
||||
@@ -32,6 +32,7 @@ int f(void)
|
||||
free(malloc(64));
|
||||
free(malloc(96));
|
||||
free(malloc(128));
|
||||
free(malloc(256));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user