File: api.sh

package info (click to toggle)
cthreadpool 0.0%2Bgit20170424-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 224 kB
  • sloc: ansic: 566; sh: 182; makefile: 16
file content (33 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/bash

#
# This file has several tests to check that the API
# works to an acceptable standard.
#

. funcs.sh


# ---------------------------- Tests -----------------------------------


function test_api {
	echo "Testing API calls.."
	compile src/api.c
	output=`./test`
	if [[ $? != 0 ]]; then
		 err "$output" "$output"
		 exit 1
	fi
}



# Run tests
test_api





echo "No API errors"