Skip to content

Commit

Permalink
test: Add load testing files (#184)
Browse files Browse the repository at this point in the history
* ci: Add load_test dir

* test(loadtest): Add exclusion regex to loadtest
  • Loading branch information
jidicula authored Mar 12, 2024
1 parent 914e674 commit 434716a
Show file tree
Hide file tree
Showing 1,004 changed files with 17,032 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,13 @@ jobs:
- 18
path:
- check: 'test/known_fail'
exclude: 'capi'
exclude: 'capital'
known_fail: true
- check: 'test/known_pass'
exclude: 'capi'
exclude: 'capital'
known_fail: false
- check: 'test/load_test'
exclude: 'capital'
known_fail: false
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion test/known_pass/capital_C/addition.C
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

main()
{
int integer1, integer2,
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
Expand Down
17 changes: 17 additions & 0 deletions test/load_test/addition-000.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-001.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-002.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-003.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-004.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-005.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-006.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-007.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-008.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-009.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-010.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-011.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-012.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-013.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-014.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-015.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-016.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-017.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-018.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
17 changes: 17 additions & 0 deletions test/load_test/addition-019.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Addition program */
#include <stdio.h>

main()
{
int integer1, integer2,
sum; /* declaration before any executable statements*/

printf("Enter first integer\n"); /* prompt */
scanf("%d", &integer1); /* read an integer */
printf("Enter second integer\n"); /* prompt */
scanf("%d", &integer2); /* read an integer */
sum = integer1 + integer2; /* assignment of sum */
printf("Sum is %d\n", sum); /* print sum */

return 0; /* Indicate program ended successfully */
}
Loading

0 comments on commit 434716a

Please sign in to comment.