Skip to content

Instantly share code, notes, and snippets.

View dalboris's full-sized avatar

Boris Dalstein dalboris

View GitHub Profile
@dhandeo
dhandeo / CTestTestfile.cmake
Created February 8, 2013 18:41
Using python "unittest" with CTest CDash for testing web application written in "Flask". Some tests internally use browser automation using "selenium". Where the first line in the CTestTestfile uses another python function "list_tests.py" to discover all the unit tests starting current directory using unittest discover capability.
# Extract the test by running python code
execute_process(COMMAND "python" "list_tests.py" OUTPUT_VARIABLE STR_TESTS
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE)
separate_arguments(TEST_LIST UNIX_COMMAND ${STR_TESTS})
foreach(ATEST ${TEST_LIST})
#message(" +")
@heiths
heiths / mayaOnUbuntu.sh
Last active February 28, 2024 18:50
Shell script to install and setup Autodesk Maya 2014 on Ubuntu 13.04
#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then