Skip to content

Commit

Permalink
update r818
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Apr 16, 2015
1 parent 713f409 commit f8af701
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tools/twilio/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
#
# Makefile

.PHONY: setup
.PHONY: setup sample dryrun run

sample: sample.cpp Makefile
${CXX} sample.cpp -o sample

exec_sample: sample
- ./sample --iutest_output=xml:result.xml

dryrun: exec_sample
./iutwilio.py result.xml --dryrun --call ${CALL_NUMBER}

run: exec_sample
./iutwilio.py result.xml --call ${CALL_NUMBER}

setup:
#pip install twilio
Expand Down
33 changes: 33 additions & 0 deletions tools/twilio/sample.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//======================================================================
//-----------------------------------------------------------------------
/**
* @file sample.cpp
* @brief twilio sample
*
* @author t.shirayanagi
* @par copyright
* Copyright (C) 2015, Takazumi Shirayanagi\n
* This software is released under the new BSD License,
* see LICENSE
*/
//-----------------------------------------------------------------------
//======================================================================
#include "../../include/iutest.hpp"

#ifdef UNICODE
int wmain(int argc, wchar_t* argv[])
#else
int main(int argc, char* argv[])
#endif
{
IUTEST_INIT(&argc, argv);
return IUTEST_RUN_ALL_TESTS();
}

int a=0;

IUTEST(Test, A)
{
IUTEST_ASSERT_EQ(a, 1);
}

0 comments on commit f8af701

Please sign in to comment.