1
/*___INFO__MARK_BEGIN__*/
2
/*************************************************************************
4
* The Contents of this file are made available subject to the terms of
5
* the Sun Industry Standards Source License Version 1.2
7
* Sun Microsystems Inc., March, 2001
10
* Sun Industry Standards Source License Version 1.2
11
* =================================================
12
* The contents of this file are subject to the Sun Industry Standards
13
* Source License Version 1.2 (the "License"); You may not use this file
14
* except in compliance with the License. You may obtain a copy of the
15
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
17
* Software provided under this License is provided on an "AS IS" basis,
18
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
19
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
20
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
21
* See the License for the specific provisions governing your rights and
22
* obligations concerning the Software.
24
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
26
* Copyright: 2001 by Sun Microsystems, Inc.
28
* All Rights Reserved.
30
************************************************************************/
31
/*___INFO__MARK_END__*/
38
#include "sge_all_listsL.h"
40
#include "sge_hgroup.h"
43
bool check_attr_str_list_find_value(void)
46
lList *attr_list = NULL;
47
lList *answer_list = NULL;
48
lList *ambiguous_hostref_list = NULL;
49
lListElem *attr = NULL;
52
lList *hostref_list1 = NULL;
53
lList *hostref_list2 = NULL;
54
lList *hostref_list3 = NULL;
59
hostref_list_add(&hostref_list1, NULL, "a");
60
hostref_list_add(&hostref_list1, NULL, "b");
61
hostref_list_add(&hostref_list1, NULL, "c");
62
hostref_list_add(&hostref_list1, NULL, "d");
63
hostref_list_add(&hostref_list1, NULL, "e");
65
hostref_list_add(&hostref_list2, NULL, "f");
66
hostref_list_add(&hostref_list2, NULL, "a");
67
hostref_list_add(&hostref_list2, NULL, "b");
68
hostref_list_add(&hostref_list2, NULL, "g");
69
hostref_list_add(&hostref_list2, NULL, "c");
71
hostref_list_add(&hostref_list3, NULL, "f");
72
hostref_list_add(&hostref_list3, NULL, "g");
73
hostref_list_add(&hostref_list3, NULL, "h");
74
hostref_list_add(&hostref_list3, NULL, "i");
75
hostref_list_add(&hostref_list3, NULL, "j");
77
hgroup1 = hgroup_create(NULL, "@A", hostref_list1);
78
hgroup2 = hgroup_create(NULL, "@B", hostref_list2);
79
hgroup3 = hgroup_create(NULL, "@C", hostref_list3);
80
*(hgroup_list_get_master_list()) = lCreateList("", HGRP_Type);
81
lAppendElem(*(hgroup_list_get_master_list()), hgroup1);
82
lAppendElem(*(hgroup_list_get_master_list()), hgroup2);
83
lAppendElem(*(hgroup_list_get_master_list()), hgroup3);
88
int main(int argc, char *argv[])
92
DENTER_MAIN(TOP_LAYER, "execd");
97
failed = check_attr_str_list_find_value();
100
return failed ? 1 : 0;