source: trunk/test/pyomo/examples/test_amplbook2.py @ 1768

Last change on this file since 1768 was 1768, checked in by wehart, 11 years ago

Rework of Coopr to use the new PyUtilib? package decomposition.

NOTE: to use Coopr with this update, we need to work with a new version of coopr_install.

File size: 847 bytes
Line 
1#
2# Unit Tests for complete examples
3#
4
5import unittest
6import os
7import sys
8from os.path import abspath, dirname
9topdir = dirname(dirname(abspath(__file__)))+os.sep+".."+os.sep+".."
10sys.path.insert(0, topdir)
11currdir = dirname(abspath(__file__))+os.sep
12
13from coopr.pyomo import *
14import pyutilib.th
15import glob
16
17class TestAmplbook2(pyutilib.th.TestCase): pass
18
19#
20# DISABLED FOR NOW ... Revisit these when the ipconvert utility is stable...
21#
22
23#data_dir=topdir+os.sep+"examples"+os.sep+"pyomo"+os.sep+"amplbook2"+os.sep
24#files = glob.glob(data_dir+"*.py")
25#for file in files:
26#    bname=os.path.basename(file)
27#    name=bname.split('.')[0]
28#    TestAmplbook2.add_commandline_test(cmd="cd "+data_dir+"; "+topdir+os.sep+"scripts/pyomo "+bname+" "+name+".dat", baseline=data_dir+name+".log", name=name)
29
30if __name__ == "__main__":
31   unittest.main()
Note: See TracBrowser for help on using the repository browser.