4 # Copyright (C) 2010-2018 CEA/DEN
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 from src.salomeTools import Sat
28 class TestMakeinstall(unittest.TestCase):
29 """Test of the makeinstall command"""
32 # Test the configure-make-makeinstall command without any option
36 product_name = "PRODUCT_GIT"
40 sat.prepare(appli + " --product " + product_name)
41 expected_install_dir = src.product.get_product_config(
44 expected_file_path = os.path.join(expected_install_dir, "bin/hello")
46 sat.configure(appli + " --product " + product_name)
48 sat.make(appli + " --product " + product_name)
50 sat.makeinstall(appli + " --product " + product_name)
52 if os.path.exists(expected_file_path):
54 # pyunit method to compare 2 str
55 self.assertEqual(OK, "OK")
58 # Test the sat -h make
64 "The makeinstall command executes the 'make install' command"
65 in makeinstall.description()
69 # pyunit method to compare 2 str
70 self.assertEqual(OK, "OK")
74 if __name__ == "__main__":