SAF Test Project: An open-source repository for SAF-conformance test suites

Getting Started with SAF Test

This project intends to provide confromance test suites for the SAF APIs independent of a particular implmentation. Currently our goal is to provide tests focused on API compliance and NOT functional testing.

How to use SAF_TEST as certification
------------------------------------
1.$ cd $service_name
# link the library which is to be tested
2.$ vi LDFLAGS
3.$ cd include
***
If the service is for AIS A.01.01 spec compliance tests, users need to copy the implementation specific header files to include directory. Then change the im_spec.h header file to include those headers. The reason we create this file is because SAF AIS A.01.01 spec doesn't claim the headers clearly. It is just a workaround for it.
Go to step 4 and 5.
***
***
If the service is for SAF B.01.01 spec or HPI A.01.01 spec tests, there will be correct header files put in this include directory.
Go to step 6.
***
4.Copy implementation specific headers to include directory
# Include implementation specific headers in im_spec.h
5.$ vi im_spec.h
6.$ cd $topdir
7.$ make
8.$ ./run_test.sh
Then users can get result.txt and result.xml.

How to use SAF_TEST service by service
--------------------------------------
1.$ cd $serivce_name
2.$ vi LDFLGS
3.$ cd include
***
If the service is for AIS A.01.01 spec compliance tests, users need to copy the implementation specific header files to include directory. Then change the im_spec.h header file to include those headers. The reason we create this file is because SAF AIS A.01.01 spec doesn't claim the headers clearly. It is just a workaround for it.
So im_spec.h is only used for the tests for SAF AIS A.01.01.
Go to step 4 and 5.
***
***
If the service is for SAF B.01.01 spec or HPI A.01.01 spec tests, there will be correct header files put in this include directory.
Go to step 6.
***
4.Copy implementation specific headers to include directory
# Include implementation specific headers in im_spec.h
5.$ vi im_spec.h
6.$ cd $service_name
7.$ make
8.$./run_tests.sh
Then users can get result.txt.

Log file:
---------
1.build_log: This log is to get the error or warning when make the test cases.
2.run_log: This log is to running information of the test cases.

Users to develop test cases:
----------------------------
1. Include im_spec.h and saf_test.h in the source code. im_spec.h should be put in front of saf_test.h.
2. develop test cases. We have standard output. Please referenceFramework_specification and result_claim under doc directory.